package com.zhongli.devplatform.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date: 2020/6/7 12:08
 */

/**
 * 实现该接口，把枚举类作为json对象返回
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public interface EnumMessage {

    int getCode();
    String getMessage();

}
